package spms.data.entity;

import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

@Alias(value = "Icon")
public class Icon implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 1998523615154998609L;

    private Integer id;
    private String value;

    private Timestamp addTime;
    private Timestamp updateTime;

    public Icon() {
        this(null);
    }

    ;

    public Icon(String value) {
        this.value = value;
        this.addTime = new Timestamp(new Date().getTime());
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Timestamp getAddTime() {
        return addTime;
    }

    public void setAddTime(Timestamp addTime) {
        this.addTime = addTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Icon{" +
                "id=" + id +
                ", value='" + value + '\'' +
                ", addTime=" + addTime +
                ", updateTime=" + updateTime +
                '}';
    }
}